#include<bits/stdc++.h>
using namespace std;
int a[100010],b[100010],tot,ans;
int main()
{   freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    for(int i=1;i<=n;i++)
    {   cin>>a[i];
        b[a[i]]++;
    }
    for(int i=1;i<=100000;i++)
    {   ans=max(0,ans-b[i]);
        ans+=b[i];
    }
    cout<<ans;
    return 0;
}
